% TEST_ID: LANG-EXPAND-0085
% CATEGORY: stdlib/arithmetic_ops/triangle
% 测试 三角函数

function test_angle()
assert(round(angle(1+i), 15) == 0.785398163397448)
assert(round(angle(single(3i)), 15, 'significant') == single(1.5707964))
assert(angle(123) == 0.0)

z = 2*exp(i*0.5);
theta = angle(z);
assert(isequal(theta, 0.5))

assert(angle('a') == 0)
assert(angle(false) == 0)
